home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / Tool Chest / Interfaces / MPW Interfaces / PInterfaces / Folders.p < prev    next >
Encoding:
Text File  |  1993-09-17  |  1.9 KB  |  70 lines  |  [TEXT/MPS ]

  1. {
  2.     File:        Folders.p
  3.  
  4.     Copyright:    © 1983-1993 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Version:    System 7.1 for ETO #11
  8.     Created:    Tuesday, March 30, 1993 18:00
  9.  
  10. }
  11.  
  12. {$IFC UNDEFINED UsingIncludes}
  13. {$SETC UsingIncludes := 0}
  14. {$ENDC}
  15.  
  16. {$IFC NOT UsingIncludes}
  17.  UNIT Folders;
  18.  INTERFACE
  19. {$ENDC}
  20.  
  21. {$IFC UNDEFINED UsingFolders}
  22. {$SETC UsingFolders := 1}
  23.  
  24. {$I+}
  25. {$SETC FoldersIncludes := UsingIncludes}
  26. {$SETC UsingIncludes := 1}
  27. {$IFC UNDEFINED UsingTypes}
  28. {$I $$Shell(PInterfaces)Types.p}
  29. {$ENDC}
  30. {$IFC UNDEFINED UsingFiles}
  31. {$I $$Shell(PInterfaces)Files.p}
  32. {$ENDC}
  33. {$SETC UsingIncludes := FoldersIncludes}
  34.  
  35. CONST
  36. kOnSystemDisk = $8000;
  37.  
  38. kCreateFolder = TRUE;
  39. kDontCreateFolder = FALSE;
  40.  
  41. kSystemFolderType = 'macs';                {the system folder}
  42. kDesktopFolderType = 'desk';            {the desktop folder; objects in this folder show on the desk top.}
  43. kTrashFolderType = 'trsh';                {the trash folder; objects in this folder show up in the trash}
  44. kWhereToEmptyTrashFolderType = 'empt';    {the "empty trash" folder; Finder starts empty from here down}
  45.  
  46. kPrintMonitorDocsFolderType = 'prnt';    { Print Monitor documents }
  47.  
  48. kStartupFolderType = 'strt';            {Finder objects (applications, documents, DAs, aliases, to...) to open at startup go here}
  49. kAppleMenuFolderType = 'amnu';            {Finder objects to put into the Apple menu go here}
  50. kControlPanelFolderType = 'ctrl';        {Control Panels go here (may contain INITs)}
  51. kExtensionFolderType = 'extn';            {Finder extensions go here}
  52. kFontsFolderType = 'font';                {Fonts go here}
  53.  
  54. kPreferencesFolderType = 'pref';        {preferences for applications go here}
  55. kTemporaryFolderType = 'temp';            {temporary files go here (deleted periodically, but don't rely on it.)}
  56.  
  57. FUNCTION FindFolder(vRefNum: INTEGER;folderType: OSType;createFolder: BOOLEAN;
  58.  VAR foundVRefNum: INTEGER;VAR foundDirID: LONGINT): OSErr;
  59. {$IFC SystemSevenOrLater }
  60.  INLINE $7000,$A823;
  61. {$ENDC}
  62.  
  63.  
  64. {$ENDC} { UsingFolders }
  65.  
  66. {$IFC NOT UsingIncludes}
  67.  END.
  68. {$ENDC}
  69.  
  70.